package org.jeecg.modules.business.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.business.entity.BusCustomer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: bus_customer
 * @Author: jeecg-boot
 * @Date:   2023-03-28
 * @Version: V1.0
 */
public interface BusCustomerMapper extends BaseMapper<BusCustomer> {

    @Select("select * from bus_customer bc \n" +
            "left join bus_order_fee bof on bc.id = bof.contact_id \n" +
            "where bof.id = #{orderId}")
    BusCustomer getCustomerByOrderId(String orderId);
}
